package com.tms.qy.service.impl;

import java.util.List;

import com.tms.qy.domain.TmsQy;
import com.tms.qy.mapper.TmsQyMapper;
import com.tms.qy.service.ITmsQyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 企业Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-25
 */
@Service
public class TmsQyServiceImpl implements ITmsQyService
{
    @Autowired
    private TmsQyMapper tmsQyMapper;

    /**
     * 查询企业
     * 
     * @param id 企业主键
     * @return 企业
     */
    @Override
    public TmsQy selectTmsQyById(Long id)
    {
        return tmsQyMapper.selectTmsQyById(id);
    }

    /**
     * 查询企业列表
     * 
     * @param tmsQy 企业
     * @return 企业
     */
    @Override
    public List<TmsQy> selectTmsQyList(TmsQy tmsQy)
    {
        return tmsQyMapper.selectTmsQyList(tmsQy);
    }

    /**
     * 新增企业
     * 
     * @param tmsQy 企业
     * @return 结果
     */
    @Override
    public int insertTmsQy(TmsQy tmsQy)
    {
        return tmsQyMapper.insertTmsQy(tmsQy);
    }

    /**
     * 修改企业
     * 
     * @param tmsQy 企业
     * @return 结果
     */
    @Override
    public int updateTmsQy(TmsQy tmsQy)
    {
        return tmsQyMapper.updateTmsQy(tmsQy);
    }

    /**
     * 批量删除企业
     * 
     * @param ids 需要删除的企业主键
     * @return 结果
     */
    @Override
    public int deleteTmsQyByIds(Long[] ids)
    {
        return tmsQyMapper.deleteTmsQyByIds(ids);
    }

    /**
     * 删除企业信息
     * 
     * @param id 企业主键
     * @return 结果
     */
    @Override
    public int deleteTmsQyById(Long id)
    {
        return tmsQyMapper.deleteTmsQyById(id);
    }
}
